<?php

namespace app\admin\controller;

use app\common\controller\Backend;
use think\Exception;
use think\exception\ThrowableError;
use think\Image;

/**
 * 后台首页
 * @internal
 */
class Test extends Backend
{
    protected $noNeedRight = "*";
    protected $layout = '';
    protected $smallFolder = "poster/";//缩略图存放路径
    protected $toFile = true;
    public function _initialize()
    {
        parent::_initialize();
        //移除HTML标签
        $this->request->filter('trim,strip_tags,htmlspecialchars');
    }
    public function jobtest(){
        //\think\Queue::push('\app\admin\job\TestJob@orderJob', ['order' => ['id'=>1,"order_sn"=>"abskding"], 'user' => ['id'=>1,'nickname'=>'xxx']], 'wstest');
        $re1 =\think\Queue::later(5,'\app\admin\job\TestJob@orderJob', ['order' => date("Y-m-d H:i:s")], 'wstest');
        ps(23);
    }


}
